import request from "@/utils/request.js";

// 查询优惠券
export const getVoucherService = () => {
    return request.get('/voucher/all')
}

// 抢购优惠券
export const buyVoucherService = (id) => {
    return request.put(`/voucher/buy/${id}`)
}